<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>资料-个人中心-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
    <div class="container mrgB30">
        <div class="member clearfix">
            <?php include_once(VIEWPATH."m/public/left_menu.php");?>
            <div class="fr uc_content">
            	<?php include_once(VIEWPATH."m/public/notice.php");?>
                <div class="clearfix uitopg">
                	<div class="fl um_uitop">
                        <form method="post" action="" id="xtform">
                        	<div class="authent">
                            	<div class="aut_bti">个人资料
                                <?php if(FALSE == $hasAvatar){?>
                                    <a href="/m/model" title="返回" style="float:right">返回</a>
                                <?php }?></div>
                                <?php echo validation_errors('<div class="error">', '</div>');?>
                                <table class="aut_tab profile" width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <a class="info_tab info_tab_on" href="<?php echo $infoUrl?>">基本信息</a>
                                            <a class="info_tab" href="<?php echo $picUrl?>">图片设置</a>
                                            <?php if(FALSE == $hasAvatar) :?>
	                                            <a class="info_tab" href="<?php echo $avatarUrl?>">头像设置</a>
	                                            <a class="info_tab" href="<?php echo $workUrl?>">作品管理</a>
                                            <?php else:?>
                                            	<a class="info_tab" href="<?=$avatarUrl?>">头像设置</a>
                                            <?php endif;?>
                                        </td>
                                        <td>
                                        	<a href="javascript:void(0);" class="edit_ope show_info">修改</a>
                                        </td>
                                    </tr>
                                </table>
                                <?php
                                if($o['usertype']==1)
                                  include_once(VIEWPATH."m/public/info_model_inc.php");
                                else if(in_array($o['usertype'], array(4,5,6)) )
                                  include_once(VIEWPATH."m/public/info_photo_inc.php");
                                ?>                             
                              <!--  <table class="aut_tab profile" width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr style="border-bottom:none;">
                                    	<td width="80" style="height:80px">&nbsp;</td>
                                    	<td colspan="3">
                                        	<input name="submit" type="submit" class="but" value="保存"/>
                                        	<!--<input name="" type="button" class="but but_reset" value="预览"/>
                                    	</td>
                                	</tr>
                                </table>-->
                        	</div>
                        </form>
                    </div>
                    <div class="fr um_wind">
                    	<?php include_once(VIEWPATH."m/public/right.php");?>
                    </div>
                </div>
            </div>
        </div>
        <div class="help_bottom"></div>
    </div> 
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery.SuperSlide.2.1.1.js"></script>
<script>jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true});</script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery.validate.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('lib')?>data/area.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('lib')?>data/multiselect.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/m/info.js"></script>
<!--编辑器-->
<style type="text/css">.ke-container-default{width: 500px !important;margin: 10px 0;}</style>
<script charset="utf-8" src="<?php echo _get_cfg_path('lib')?>kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="<?php echo _get_cfg_path('lib')?>kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
//实例化编辑器
var editor;
var editor_w;
  KindEditor.ready(function(K) {
    editor = K.create('textarea[name="introduction"]', {
      resizeType : 1,
      allowPreviewEmoticons : false,
      allowImageUpload : true,
      items : [
        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist', '|', 'emoticons', 'image', 'link']
    });
    
    editor_w = K.create('textarea[name="introduction_w"]', {
      resizeType : 1,
      allowPreviewEmoticons : false,
      allowImageUpload : true,
      items : [
        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist', '|', 'emoticons', 'image', 'link']
    });
});

<?php if(in_array($o['usertype'], array(4,5,6)) && !$roleArr):?>
  $(function(){
	$("#sole_sub_other").hide();
	$(".edit_type_radio").click(function(){
		$.ajax( {
            url:'/m/info/getrole',
            data:{
                    type : $(this).val(),
            },
            type:'post',
            cache:false,
            dataType:'json',
            success:function(res) {
                if(res.code == 200){
                	$(".user_role_arr").show();
                   var role_str = '';
                   $.each(res.data,function(key,val){
                	   role_str += "<label><input type='checkbox' name='role[]' onclick='checkrole(this)' value='"+val+"'/><em style='padding-left:5px'>"+val+"</em></label>";
                   })
                   $("#role_sub_checkbox").html(role_str);
                }
                else if(res.code == 0)
                {
                    if(res.data.length == 0)
                    {
                        $(".user_role_arr").hide();
                    }
                }
             }
        });
		$("#sole_sub_other").show();
	});
  })
<?php endif;?>
</script>
</html>